package com.jhgsys.internal.sypq.entity;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wuwenze.poi.annotation.Excel;
import com.wuwenze.poi.annotation.ExcelField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Data
@Excel("排期信息")
public class TaskDto  extends  Task{

    @Schema(description = "任务类型名称")
    @ExcelField(value = "任务类型名称", width = 120)
    private String taskTypeName;

    @Schema(description = "项目名称")
    @ExcelField(value = "任务类型名称", width = 120)
    private String projectName;

    @Schema(description = "审核人帐号")
    private String auditorid;

    @Schema(description = "模型ids")
    private String modelids;

    @Schema(description = "模型names")
    private String modelnames;

    @ExcelField(value = "船模编号", width = 120)
    @Schema(description = "船模编号")
    private String shipcodes;

    @Schema(description = "船模名称")
    @ExcelField(value = "船模名称", width = 120)
    private String shipnames;


    @Schema(description = "桨模编号")
    @ExcelField(value = "桨模编号", width = 120)
    private String oarscodes;


    @Schema(description = "桨模名称")
    @ExcelField(value = "桨模名称", width = 120)
    private String oarsnames;

    @Schema(description = "附体编号")
    @ExcelField(value = "附体编号", width = 120)
    private String attachcodes;

    @Schema(description = "附体名称")
    @ExcelField(value = "附体名称", width = 120)
    private String attachnames;

     //附件信息
    private JSONArray fileList;

    @Schema(description = "任务状态名称")
    @ExcelField(value = "任务状态名称", width = 120)
    private String statusName;

    @Schema(description = "所需资源编码")
    @ExcelField(value = "所需资源编码", width = 120)
    private String rsCode;

    @Schema(description = "所需资源名称")
    @ExcelField(value = "所需资源名称", width = 120)
    private String rsName;

    @Schema(description = "试验内容")
    private JSONArray  taskTestArray;

    @Schema(description = "敞水试验")
    private JSONArray  taskTestcsArray;

    @Schema(description = "伴流试验-船模")
    private JSONArray  taskTestbl1Array;

    @Schema(description = "伴流试验-桨模")
    private JSONArray  taskTestbl2Array;
    @Schema(description = "流线试验")
    private JSONArray  taskTestlxArray;

    @Schema(description = "审批记录")
    private JSONArray  workflowArray;

    @Schema(description = "客户编码")
    @ExcelField(value = "客户编码", width = 120)
    private String custCode;

    @Schema(description = "客户单位")
    @ExcelField(value = "客户单位", width = 120)
    private String custName;

    @Schema(description = "客户联系人")
    @ExcelField(value = "客户联系人", width = 120)
    private String contact;

    @Schema(description = "联系电话")
    @ExcelField(value = "联系电话", width = 120)
    private String telephone;

    @Schema(description = "项目帐号")
    private  String    managerids;

    @Schema(description = "项目经理")
    @ExcelField(value = "项目经理", width = 120)
    private  String  managers;


    // 1.已勾选  2.未沟选
    @Schema(description = "我的排期")
    private String mySchedule;

    @Schema(description = "任务所需模型")
    private JSONArray  taskModelArray;

    //gantt 拖动
    private  Boolean  isDrag= true;
    //gantt 不可以拉伸
    private Boolean isResize=false;


     private String   taskColor;
    //试验条件不完备FFFF66,试验条件完备0066FF, 试验中:00FF00, 已完成：7F7F7F,已暂停：CC0000
     private  String   rateColor;
     Integer  rate =0;
     private  Boolean isMiddleStart;

     private  Boolean  isMiddleEnd;

   // private  String   rateColor="#8101CA";

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    Date endTime;

    @Schema(description = "资源主管")
    String rsDirector;

    @Schema(description="是否具备试验条件")
    Boolean isPossibleTest;

    @Schema(description="排期状态,4:未排期,5:试验中,6:已完成,7:已暂停")
    Integer mobileStatus;

    @Schema(description = "审批不通过原因")
    String  reason;
}
